﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using up6.db.biz;
using up6.db.database;
using up6.utils;

namespace up6.api.up6.nosql
{
    public partial class f_process : WebBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string id = this.reqString("id");
            string uid = this.reqString("uid");
            string offset = this.reqString("offset");
            string lenSvr = this.reqString("lenSvr");
            string perSvr = this.reqString("perSvr");
            string callback = this.reqString("callback");//jsonp参数

            string json = callback + "({\"state\":0})";//返回jsonp格式数据。
            if (!string.IsNullOrEmpty(id)
                && !string.IsNullOrEmpty(lenSvr)
                && !string.IsNullOrEmpty(perSvr))
            {
                up6_biz_event.file_post_process(id);
                json = callback + "({\"state\":1})";//返回jsonp格式数据。
            }
            this.toContentJson(json);
        }
    }
}